@extends('app')

@section('content')
<h4 class="page-header">个人信息</h4>

<div class="table-responsive">
<form action="/admin/index/owner" method="post">
    <table class="table table-striped">
      <tbody>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">管理员角色:</span>
                <div class="col-sm-5 col-xs-8">
                    {{ Auth::user()->roles[0]['display_name'] }}
                </div>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">姓名:</span>
                <div class="col-sm-5 col-xs-8">
                    <input type="text" class="form-control" name="name"  value="{{ Auth::user()->name }}" >
                </div>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">邮箱:</span>
                <div class="col-sm-5 col-xs-8">
                    <input type="text" class="form-control" name="email" value="{{ Auth::user()->email }}" >
                </div>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">联系电话:</span>
                <div class="col-sm-5 col-xs-8">
                    <input type="text" class="form-control" name="phone" value="{{ Auth::user()->phone }}" >
                </div>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">QQ号码:</span>
                <div class="col-sm-5 col-xs-8">
                    <input type="text" class="form-control" name="qq" value="{{ Auth::user()->qq }}" >
                </div>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">最后登陆时间:</span>
                <div class="col-sm-5 col-xs-8">
                    {{ Auth::user()->last_login_at }}
                </div>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="form-group">
                <span class="col-sm-4 col-xs-3 control-label">最后登陆IP地址:</span>
                <div class="col-sm-5 col-xs-8">
                    {{ long2ip(Auth::user()->last_ip) }}
                </div>
            </div>
          </td>
        </tr>
      </tbody>
    </table>
    <input type="hidden" name="uid" value="{{ Auth::user()->id }}">
    {!! csrf_field() !!}
    <div class="form-actions">
        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">
    </div>
</form>
</div>
@endsection
